<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script type="module">
    import Promise from "./index.js";

    new Promise((resolve,reject)=>{
        resolve(100);
    }).then(value=>{
        console.log(value);// 100;
        throw value+10;
    }).then(value=>{
        console.log(value);// 110
        return value+20;
    }).then(value=>{
        console.log(value);// 130
    }).catch(reason=>{
        console.log("catch",reason);
    })
</script>
</html>